package com.ioday02test;

import java.io.*;
import java.nio.charset.StandardCharsets;
import java.time.temporal.Temporal;

public class ISRTest {
    public static void main(String[] args) throws IOException {

        FileInputStream fis = new FileInputStream("test.txt");
        InputStreamReader isr = new InputStreamReader(fis, StandardCharsets.UTF_8);
        int temp;
        while ((temp = isr.read())!=-1){
            System.out.print((char) temp);
        }
        isr.close();

        System.out.println();
        System.out.println("读取完成");


    }
}
